local opt = vim.opt
local g = vim.g

opt.termguicolors = true
opt.modelines = 0
opt.compatible = false
opt.backspace = { "indent", "eol", "start" }

opt.number = true
opt.autoindent = true
opt.cursorline = true
opt.tabstop = 4
opt.expandtab = true
opt.shiftwidth = 4
opt.softtabstop = 4

opt.hlsearch = true
opt.incsearch = true
opt.smartcase = true
opt.endofline = true
opt.wildmenu = true
opt.wildmode = "full"
opt.history = 200
opt.nrformats = ""

opt.showcmd = true
opt.mouse = ""

opt.guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50"

g.skip_defaults_vim = 1

if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then
    vim.g.airline_theme = "papercolor"
    vim.cmd("colorscheme onedark")
elseif vim.fn.has("macunix") == 1 then
    vim.g.airline_theme = "tomorrow"
    vim.cmd("colorscheme onedark")
    -- 修改 illuminate 用的高亮组
end

